package cn.melon.view.admin.course.ctr;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import cn.melon.view.admin.course.CourseInfoDlg;
import cn.melon.view.admin.course.CourseJPanel;

public class CourseTableMouse extends MouseAdapter {
    private CourseInfoDlg dialog = null;
    private CourseJPanel panel = null;
    
    public CourseTableMouse(CourseJPanel panel){
        this.panel = panel;
    }
    
    @Override
    public void mouseClicked(MouseEvent e){
        if(e.getClickCount() == 2){
//            LibraryBooksInfo book = panel.getTableRowBook();
            dialog = new CourseInfoDlg(panel.getScInfo(), panel);
            dialog.setVisible(true);
        }
    }

}
